#include "stdafx.h"
#include "serverRoot.h"
#include "revision.h"
namespace Apo
{
	/*#define DEF_VALUE_NOT_SET 0xDEADBEEF*/
#define BANNER "APO r%u/%s-%s :: SceneEdit Server"


	serverRoot::serverRoot()
	{
	}
	serverRoot::~serverRoot()
	{
		release();
	}

	void	serverRoot::initServer()
	{
		gLogManger.outString(BANNER, g_getRevision(), CONFIG, PLATFORM_TEXT);
		g_Crash_Log = new TextLogger(FormatOutputString("logs", "ServerCrashLog", true).c_str(), false);
		gLogManger.outString("The key combination <Ctrl-C> will safely shut down the server at any time.");
		gLogManger.outString("");
		gLogManger.outString("Initializing Random Number Generators...");
		gLogManger.outColor(TNORMAL, " >> starting: thread manager...");
		gThreadMgr->Initialize();
		gLogManger.outColor(TGREEN, " ok!\n");
		gSocketMgr->SpawnWorkerThreads();

	}
	void	serverRoot::release()
	{

	}

}